Fix/draft retrieval on refresh#1371
Merged
NishaSharma14 merged 9 commits intodevelopmentfrom Mar 23, 2026
Merged
Conversation
…match findDefaultDraft only filtered by owner_id, which could return a draft from a different team. When the user uploaded files to that draft and refreshed at step 2, UserDrafts::execute() filtered by the current team_id and the draft would not appear in results.
Add DraftController::show() with ownership verification so the frontend can fetch a specific draft when it is not found in the pre-loaded team- scoped list. This provides a fallback for drafts that were created under a different team context.
selectStep(2) did not set draft_id in the query string, relying on it persisting from step 1. Now it explicitly sets it. When a page refresh at step 2 cannot find the draft in the team-scoped list, the frontend falls back to a direct fetch via the new show endpoint.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #1371 +/- ##
=================================================
+ Coverage 71.42% 71.44% +0.01%
- Complexity 2415 2417 +2
=================================================
Files 210 210
Lines 9317 9326 +9
=================================================
+ Hits 6655 6663 +8
- Misses 2662 2663 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
NishaSharma14
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.